package com.javen.springbootneo4j.controller;

import com.javen.springbootneo4j.entity.node.Person;
import com.javen.springbootneo4j.entity.relation.LivesIn;
import com.javen.springbootneo4j.service.LivesInService;
import com.javen.springbootneo4j.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: com.javen.springbootneo4j.controller
 * @Author: tujw@netinnet.cn
 * @Date: 2024/2/28 14:16
 */
@RestController
@RequestMapping("/livesIn")
public class LivesInController {

    @Autowired
    private LivesInService livesInService;

    @PostMapping("/livesInPersonToCity")
    public LivesIn livesInPersonToCity(String personName, String cityName) {
        return livesInService.livesInPersonToCity(personName, cityName);
    }

}
